#ifndef GAMECAMERA_H
#define GAMECAMERA_H

#include "Helper.h"

class GameCamera : public CCNode
{
public:
    GameCamera();
    ~GameCamera();

    void initGameCamera(CCSize _cameraSize, CCRect _cameraRegion, CCLayer *_screen);
    void focusTo(CCNode *_object);
    void moveToPoint(CCPoint _point, float _duration);
    void update(float delta);

public:
    CCNode *focusObject;
    CCLayer *mapLayer;

    CCPoint desPoint;
    CCPoint posOnScreen;
    CCPoint moveSpeed;
    CCSize screenSize;
    CCRect layerArea;
};

#endif // GAMECAMERA_H
